package com.crm.common.crm.entity.PO;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 退款表
 * </p>
 *
 * @author zhangzhiwei
 * @since 2020-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bill_crm_refund")
@ApiModel(value="CrmRefund对象", description="退款表")
public class CrmRefund implements Serializable {

    private static final long serialVersionUID=1L;


    @TableId(value = "refund_id", type = IdType.AUTO)
    private Integer refundId;

    @ApiModelProperty(value = "退款编号")
    private String number;

    @ApiModelProperty(value = "客户ID")
    private Integer customerId;

    @ApiModelProperty(value = "合同Id")
    private Integer contractId;

    @ApiModelProperty(value = "合同金额")
    private BigDecimal contractMoney;

    @ApiModelProperty(value = "0待审核、1通过、2拒绝、3审核中 4:撤回 5 未提交 6 创建 7 已删除 8 作废")
    private Integer checkStatus;

    @ApiModelProperty(value = "回款方式")
    private String returnType;

    @ApiModelProperty(value = "回款日期")
    private Date returnTime;

    @ApiModelProperty(value = "退款方式")
    private String refundType;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal money;

    @ApiModelProperty(value = "退款日期")
    private Date refundDate;

    @ApiModelProperty(value = "开户行")
    private String bankCardMsg;

    @ApiModelProperty(value = "开户人姓名")
    private String accountHolder;

    @ApiModelProperty(value = "银行卡卡号")
    private String bankCardNumber;

    @ApiModelProperty(value = "客户来源")
    private String source;

    @ApiModelProperty(value = "营销讲师")
    private Long teacherId;

    @ApiModelProperty(value = "购买课程")
    private String courseSource;

    @ApiModelProperty(value = "审核记录ID")
    private Integer examineRecordId;

    @ApiModelProperty(value = "创建人ID")
    @TableField(fill = FieldFill.INSERT)
    private Long createUserId;

    @ApiModelProperty(value = "助教协作人")
    private String assistantUserId;

    @ApiModelProperty(value = "负责人所在部门")
    private String ownerDeptId;

    @ApiModelProperty(value = "负责人ID")
    private Long ownerUserId;

    @ApiModelProperty(value = "退款负责人Id")
    private Long refundUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    private String remarks;

//    @ApiModelProperty(value = "只读权限")
//    private String roUserId;

//    @ApiModelProperty(value = "读写权限")
//    private String rwUserId;

//    @ApiModelProperty(value = "最后跟进时间")
//    private Date lastTime;

    @ApiModelProperty(value = "VIP期数")
    private String vipPeriods;

    @ApiModelProperty(value = "附件批次Id")
    private String refundMaterial;

    @ApiModelProperty(value = "开户行省市")
    private String bankCardAddr;

    @ApiModelProperty(value = "批次 比如附件批次")
    private String batchId;

    @ApiModelProperty(value = "是否重复")
    private String isRepetition;

    @ApiModelProperty(value = "退款原因")
    private String refundCause;

    @ApiModelProperty(value = "支行")
    private String subBankCardMsg;

    @ApiModelProperty(value = "VIP学员")
    private Integer studentId;

    @ApiModelProperty(value = "获取表单时间")
    private Date leadsFormTime;

    @ApiModelProperty(value = "合同类别")
    private String contractCategory;

    @ApiModelProperty(value = "退款类型")
    private String refundCategory;

    @ApiModelProperty(value = "补款金额")
    private BigDecimal billMoney;


}
